<form class="layui-form" lay-filter="tpl_site_config" action="{:url('siteConfig/saveData')}">
	{volist name="data" id="list"}
	<div class="layui-form-item">
		<label class="layui-form-label">{$list.view_name}</label>
		<div class="layui-input-inline">
			{switch name="list.config_type"}
				{case value="1"}
				<input type="text" data-id="{$list.site_config_id}" name="{$list.config_name}" value="{$list.config_value}" lay-verify="required" placeholder="请输入配置值" autocomplete="off" class="layui-input">
				{/case}
				{case value="2"}
				<input type="number" data-id="{$list.site_config_id}" name="{$list.config_name}" value="{$list.config_value}" lay-verify="required" placeholder="请输入配置值" autocomplete="off" class="layui-input">
				{/case}
				{case value="3"}
				{for start="0" end="count($list['config_option_arr'])" name="k"}
				<input lay-filter="*" {if condition="$list['config_value'] EQ $list['config_option_arr'][$k]"}checked="checked"{/if} type="radio" data-id="{$list.site_config_id}" name="{$list.config_name}" value="{$list['config_option_arr'][$k]}" title="{$list['config_option_arr'][$k]}" />
				{/for}
				{/case}
				{case value="4"}
				<textarea class="layui-textarea" name="{$list.config_name}" data-id="{$list.site_config_id}">{$list.config_value}</textarea>
				{/case}
			{/switch}
			{if condition="$list['config_intro'] NEQ ''"}
			<div class="layui-form-mid layui-word-aux">{$list.config_intro}</div>
			{/if}
		</div>
	</div>
	{/volist}
</form>
<script src="/static/js/site_config/config.js" type="text/javascript" charset="utf-8"></script>